from pydantic import field_validator

from forward.extend.pydantic.base import BaseSchema
from forward.model.schemas.lucky.order import ActivityOrderOutSchema


class OrderCancleInSchema(BaseSchema):
    code: str | None = None
    prize_temp_id: int | None = None
    activity_id: int


class OrderDetailInSchema(BaseSchema):
    id: int


class ActivityCreateOrderInSchema(BaseSchema):
    code: str | None = None
    contact_name: str | None = None
    contact_phone: str | None = None
    contact_address: str | None = None
    prize_temp_id: int | None = None
    activity_id: int
    prize_id: int


class ActivityEditOrderInSchema(BaseSchema):
    orderId: int
    contact_name: str | None = None
    contact_phone: str | None = None
    contact_address: str | None = None


class ActivityOrderDetailOutSchema(ActivityOrderOutSchema):
    status_text: str | None = None
    prize_level_text: str | None = None
